﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EQual.MainModule.Employees.Proposals
{
    public  class ProposalProjectPresenter : EQual.Infrastructure.MVPFramework.Presenters.ListPresenterDefault<Projects.Views.IProjectsGridView, object>
    {
        public ProposalProjectPresenter()
        {
             
            View.ItemAdded += new EventHandler<Microsoft.Practices.Composite.Events.DataEventArgs<object>>(View_ItemAdded);
            View.ItemDeleted += new EventHandler<Microsoft.Practices.Composite.Events.DataEventArgs<object>>(View_ItemDeleted);
        }

        void View_ItemDeleted(object sender, Microsoft.Practices.Composite.Events.DataEventArgs<object> e)
        {
            throw new NotImplementedException();
        }

        void View_ItemAdded(object sender, Microsoft.Practices.Composite.Events.DataEventArgs<object> e)
        {
            throw new NotImplementedException();
        }

        public override void Dispaly(object item)
        {
            throw new NotImplementedException();
        }


    }

    public class ProposalProjectPresentationModel : Projects.Models.ProjectsPresentationModel
    {
        public ProposalProjectPresentationModel()
            : base()
        {

        }

        protected override IEnumerable<DataAccesLayer.Project> GetCollection()
        {
            return DataFactory.GetProjectsAccesLayer().GetProjectForProposal(ActiveItem);
        }
    }
}
